package Demo.mapper;


import Demo.model.Student;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentMapper {

    //查询所有的数据
    public List<Student> findAll();

    //添加一条数据
    public void getInsert(Student student);

    //通过id删除一条数据
    public void getDelete(String username);

    //修改
    public void getUpdate(Student student);

    //通过name查询一条数据
    public Student getStudent(String username);

    //获取指定用户名的个数
    public int getCountByNname(String username);

}
